<script type="text/javascript" src="__PUBLIC__/plus/myfocus/myfocus-2.0.4.full.js"></script><!--引入myFocus库-->
<style type="text/css">
pre {
  background-color: #F5F5F5;
  border: 1px solid #CCCCCC;
  border-radius: 4px;
  color: #333333;
  display: block;
  font-size: 13px;
  line-height: 1.42857;
  margin: 0 0 10px;
  padding: 9.5px;
  word-break: break-all;
  word-wrap: break-word;
}
.code {
  background-color: #F9F2F4;
  border-radius: 4px;
  color: #C7254E;
  font-size: 90%;
  padding: 2px 4px;
  white-space: nowrap;
  width:90%;
  border:0;
}

</style>
<taglib name='Html' />
<div class="Item hr">
    <div class="current">焦点图预览</div>
    <div class="fr"><a href="{:U('index')}" class="btn">焦点图列表</a></div>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
	<tr>
    	<td>
            <div id="myFocus-wrap">
                <div id="myFocus">
                    <div class="__loading"><img src="__PUBLIC__/plus/myfocus/pattern/img/loading.gif" alt="请稍候..." /></div>
                    <div class="__pic">
                        <ul>
                            <volist name='imgurls' id='img'>
                                <li><a href="{$img.url}" target="_blank"><img src="{$img.imgpath}" alt="{$img.title}" text="{$img.description}" /></a></li>
                            </volist>
                        </ul>
                    </div>
                </div>
            </div>
        </td>
    </tr>
</table>
<div style="clear:both"></div>
<div class="Item hr">
    <div class="current">前台调用代码</div>
</div>
<pre class="pre"><input type="text" class="input code" value="{$code}" /></pre>
<script type="text/javascript">
var default_config = {
	id : 'myFocus',
	pattern : '{$pattern}',
	time : '{$times}' / 1,
	trigger : '{$adTrigger}',
	width : '{$width}' / 1,
	height : '{$height}' / 1,
	txtHeight : '{$txtHeight}' / 1,
	auto : '{$auto}'=='1'?true:false,
	autoZoom : '{$autozoom}'=='1'?true:false
}
myFocus.set(default_config);
$(".code").click(function(){
	$(this).select();	
});
</script>

</body>
</html>
